package com.sky.api.search;

import com.sky.dto.es.ProductModel;
import com.sky.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "sky-mall-search",contextId = "search")
public interface SearchFeignService {

    @PostMapping("/productSearch/addProductSkuInfo")
    R addProductSkuInfo(@RequestBody List<ProductModel> productModels);
}
